// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.common.controller.response;

import java.util.List;
import java.util.Map;

import com.liuxinlong.enums.ReturnCodes;
import com.fasterxml.jackson.annotation.JsonInclude;

import lombok.Data;

/**
 * 通用返回体
 * 
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2021-12-28
 *
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class BaseResp {
	/**
	 * 返回码
	 */
	private String retCode = ReturnCodes.HTTP_SUCCESS.getRetCode();

	/**
	 * 返回信息
	 */
	private String retMessage = ReturnCodes.HTTP_SUCCESS.getMsg();

	/**
	 * 数据总量
	 */
	private int totalNum;

	/**
	 * 数据列表
	 */
	private List<Map<String, Object>> dataList;

	/**
	 * 数据Map
	 */
	private Map<String, Object> dataMap;

}
